package cn.xmkeshe.back.impl;

import cn.xmkeshe.back.IRoleServiceBack;
import cn.xmkeshe.dao.IRoleDao;
import cn.xmkeshe.model.Role;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IRoleServiceBackImpl implements IRoleServiceBack {

  @Resource
  private IRoleDao iRoleDao;

  @Override
  @Transactional(readOnly = true)
  public List<Role> list() {
    return iRoleDao.findAll();
  }
}
